package com.lanqiao.javaparkinglot.service.impl;

import com.lanqiao.javaparkinglot.dao.YgDao;
import com.lanqiao.javaparkinglot.entity.Yg;
import com.lanqiao.javaparkinglot.service.YgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class YgServiceImpl implements YgService {
    @Autowired
    YgDao ygDao;

    //查询
    @Override
    public List<Yg> findYg() {
        List<Yg>ygList=ygDao.findYg();
        return ygList;
    }
    //添加
    @Override
    public void addyg(Yg yg){
        ygDao.addyg(yg);
    }
    //修改
    @Override
    public void updateyg(Yg yg){
        ygDao.updateyg(yg);
    }
    //删除
    @Override
    public void deleteyg (Long yg_id){ygDao.deleteyg(yg_id);}
}
